package com.elecbook.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.elecbook.auth.model.dto.UserPQuery;
import com.elecbook.auth.model.dto.UserProfileDeleteDTO;
import com.elecbook.auth.model.dto.UserProfileSubmitDTO;
import com.elecbook.auth.model.po.User;
import com.elecbook.base.dto.PageDTO;

import java.util.List;

public interface UserInfoService extends IService<User> {

    /**
     * description 获取用户的详细信息
     * @author zken
     * @CreateDate 2024/11/10 20:21:30
     */
    public User getUserInfo();

    /**
     * description 更新用户信息
     * @author zken
     * @CreateDate 2024/11/11 20:34:22
     */
    User updataUserProfile(UserProfileSubmitDTO dto);

    /**
     * description 根据id获取一批用户信息
     * @author zken
     * @CreateDate 2024/11/11 22:57:38
     */
    List<User> getUserInfoByIds(List<Integer> ids);

    /**
     * description 删除用户
     * @author zken
     * @CreateDate 2024/11/17 20:12:16
     */
    void deleteUser(UserProfileDeleteDTO dto);


    //Service新增方法
    PageDTO<User> pageQuery(UserPQuery query);
    User saveUser(User user);
    User updateUserById(User user);
}
